﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="MonkeyWarranty.Web.Services.Edit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title><%=Resources.GlobalStrings.Services %></title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2><%=Resources.GlobalStrings.AddNew %> <%=Resources.GlobalStrings.Services %></h2>
    <p></p>
    <span class="failureNotification"><asp:Literal ID="lblErrorMessage" runat="server"></asp:Literal></span>
    <div>
        <fieldset class="register">
            <legend><%=Resources.GlobalStrings.Services %></legend>
            <p>
                <label><%=Resources.GlobalStrings.Code %>:</label>
                <asp:TextBox ID="txtCode" runat="server" CssClass="textEntry code"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCode" 
                                     CssClass="failureNotification"
                                     ValidationGroup="Edit">(*)</asp:RequiredFieldValidator>
            </p>
            <p>
                <label><%=Resources.GlobalStrings.Name%>:</label>
                <asp:TextBox ID="txtName" runat="server" CssClass="textEntry name"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtName" 
                                     CssClass="failureNotification"
                                     ValidationGroup="Edit">(*)</asp:RequiredFieldValidator>
            </p>
            <p>
                <label><%=Resources.GlobalStrings.Description%>:</label>
                <asp:TextBox ID="txtDescription" TextMode="MultiLine" runat="server" CssClass="textEntry description"></asp:TextBox>
            </p>
            <p>
                <label><%=Resources.GlobalStrings.SortOrder%>:</label>
                <asp:TextBox ID="txtSortOrder" runat="server" CssClass="textEntry sortorder"></asp:TextBox>
            </p>
            <p>
                <label><%=Resources.GlobalStrings.Hidden%>:</label>
                <asp:CheckBox ID="chkHidden" runat="server" />
            </p>
        </fieldset>
    </div>
    <p></p>
    <div>
        <input id="btnCancel" type="button" value="<%=Resources.GlobalStrings.Cancel %>" class="submitButton" onclick="javascript:window.location='List.aspx';" />
        <asp:Button ID="btnSave" runat="server" 
            Text="<%$ Resources:GlobalStrings, Save %>" CssClass="submitButton" 
            ValidationGroup="Edit" onclick="btnSave_Click" />
    </div>
</asp:Content>